package com.itheima.ood.keywords.demo02;

public class Student {

    private void show(){
        System.out.println("private.....student....show....");
    }

    void function(){
        System.out.println("默认....student....function....");
    }

    protected void method(){
        System.out.println("protected.....student....method.....");
    }

    public void sleep(){
        System.out.println("public....student....sleep....");
    }

    public static void main(String[] args) {

        Student student = new Student();
        student.show();
        student.function();
        student.method();
        student.sleep();
    }
}
